package dst1.model;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="ADMIN")
public class Admin extends Person{

	@OneToMany(mappedBy="admin", fetch=FetchType.LAZY)
	private List<Cluster> clusters;
	
	public Admin(){
		
	}

	public Admin(String firstName, String lastName, Address address, List<Cluster> clusters) {
		super(firstName, lastName, address);
		this.clusters = clusters;
	}

	public List<Cluster> getClusters() {
		return clusters;
	}

	public void setClusters(List<Cluster> clusters) {
		this.clusters = clusters;
	}
	
}
